<?php
namespace app\common\controller;

use think\Controller;
use think\Request;

/**
 *
 */
class PassportBase extends Controller
{
    protected $userRow = [];
    /**
     * [__construct description]
     * @author luffy<luffyzhao@vip.126.com>
     * @dateTime 2016-05-23T15:07:02+0800
     */
    public function __construct()
    {
        parent::__construct();

        defined('IS_AJAX') or define('IS_AJAX', Request::instance()->isAjax());
        defined('STATIC_PATH') or define('STATIC_PATH', dirname(ROOT_PATH) . DS . 'static');

        $this->_loadVar();//加载配置到配置库中bin

    }

    protected function _loadVar()
    {
        //\think\Config::set('bin',\think\Db::name('website')->where('status',1)->column('content','key'));
    }
}